﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MathExpressionSolver.aspx.cs" Inherits="MathExpressionSolver.MathExpressionSolver1" MasterPageFile="~/Site.Master" Title="Math Expression Solver" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Title %></h1>
                <h2> - Mathematical Expression Solver</h2>
            </hgroup>
            <p>
                This webpage has been created in order to provide a facility to
                work out long mathematical operations.
            </p>
        </div>
    </section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <h3>Provide a mathematical expression in the textbox and press '=' to see the result:</h3>
    <br />
    <div>
        <asp:TextBox ID="txtExpression" runat="server" Width="70%">0</asp:TextBox>
        &nbsp;<asp:Button ID="btnEquals" runat="server" BorderStyle="None" Font-Size="Small" Text="=" OnClick="btnEquals_Click" />
        &nbsp;<asp:Label ID="lblResult" runat="server" Text="0" Font-Bold="True" Font-Size="Medium" ForeColor="#333333"></asp:Label>
        <br />
        <br />
        <asp:Label ID="lblMessage" runat="server" Text="Valid operators include: (, ), +, -, *, /" Font-Bold="True" Font-Size="Small" ForeColor="#006600"></asp:Label>
        <br />
        <br />
        <asp:Label ID="lblBugMessage" runat="server" Text="**Known Bugs: Incorrect result when multiplying or dividing by a negative number! :( (Can happen to anyone! :Þ)**" Font-Bold="True" Font-Size="Small" ForeColor="#CC0000"></asp:Label>
    </div>
</asp:Content>